home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.sprintlink.net!news1!ts02-and-20
- From: dlmiller@iquest.net (Doug & Rose Miller)
- Subject: Re: How do you reset the computer using C on a PC ?
- X-Nntp-Posting-Host: ts00-and-02.iquest.net
- Message-ID: <DoF9GG.9py@iquest.net>
- Sender: news@iquest.net (News Admin)
- Organization: IQuest Network Services
- X-Newsreader: News Xpress Version 1.0 Beta #2.1
- References: <31473FD4.48AA@ccis.com> <4icr32INNfs@mayne.ugrad.cs.ubc.ca>
- Date: Sun, 17 Mar 1996 17:14:10 GMT
-
- c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
- +In article <31473FD4.48AA@ccis.com>, Derek Lund <wlund@ccis.com> wrote:
- +>Help?
- +
- +Write a buggy C program and use it.
- +
- +--
- Try this. It's untested and may or may not work, but I'm sure it's close. The ASM code
- in comments at the beginning is known to work.
-
- /* Following assembly-language program causes warmboot to occur
- *
- * MOV AX,0040
- * MOV DS,AX
- * MOV WORD PTR [0072],1234 4321 = test memory, 1234 = don't test
- * JMP FFFF:0000
- */
-
- #include <dos.h>
-
- void main (void) {
- asm {
- MOV AX,0x0040
- MOV DS,AX
- MOV [0x0072],0x1234
- JMP 0xFFFF:0000
- }
- }
-
-